package Ex_6;

import java.util.Scanner;

public class Main {
	
	/**
	 * @param args
	 */
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner sc;
		Conta conta = new Conta();
		
		System.out.println("CONTA");
		System.out.println("Saldo: ");
		sc = new Scanner(System.in);
		conta.setSaldo(sc.nextDouble());
		
		System.out.println("Numero :");
		sc = new Scanner(System.in);
		conta.setNumero(sc.nextInt());
		
		int aux = 1;
		while(aux == 1){
			Cliente cliente = new Cliente();
			System.out.println("ADD CLIENTE");
			System.out.println("Nome: ");
			sc = new Scanner(System.in);
			cliente.setNome(sc.next());
			
			System.out.println("Endereco :");
			sc = new Scanner(System.in);
			cliente.setEndereco(sc.next());
			
			System.out.println("CPF");
			sc = new Scanner(System.in);
			cliente.setCpf(sc.next());
			
			conta.adicionarCliente(cliente);
			
			System.out.println("Novo Cliente?\n1 - Sim\n2- Não");
			sc = new Scanner(System.in);
			aux = sc.nextInt();
		}
		
		for(Cliente c: conta.getDonos()){
			System.out.println(c.getNome());
		}
		System.out.println("Finalizado!");
	}
}
